package com.smbms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smbms.entity.SmbmsProvider;
import com.smbms.mapper.SmbmsProviderMapper;
import com.smbms.service.ProviderService;

@Service
public class ProviderServiceImpl implements ProviderService {

	
	@Autowired
	SmbmsProviderMapper providerMapper;
	
	public List<SmbmsProvider> selectProviders() {
		return providerMapper.selectAll();
	}

	public int add(SmbmsProvider provider) {
		return providerMapper.insert(provider);
	}

}
